#include <stdio.h>
#include <sys/shm.h>
#include <signal.h>
#include <sys/ipc.h>
#include <string.h>

int main(int argc, char *argv[])
{
    if(argc < 3)
    {
        printf("please input params");
        return -1;
    }
    if(strcmp(argv[1],"-m") == 0)
    {
        printf("delete the shm\n");
    }
    else
    {
        return -2;
    }
    int shmid = atoi(argv[2]);
    printf("shmid = %d\n", shmid);
    int ret = shmctl(shmid, IPC_RMID, NULL);
    
    
    
}